package com.dks.mapper;

import java.util.List;
import java.util.Map;

import com.dks.dto.RewardDto;
import com.dks.models.Reward;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RewardMapper {

    Integer insert(Reward reward);

    Integer update(Reward reward);

    Integer delete(@Param("id") Integer id);

    Reward select(@Param("id") Integer id);

    Integer cntByMap(Map<String, Object> map);

    List<Integer> getByMap(Map<String, Object> map);

    List<RewardDto> getByMapList(Map<String, Object> map);

    Integer updateByCode(Reward reward);

    Reward selectByBfCode(@Param("bfCode") String bfCode);
}
